import React from 'react';
import { DatePicker, Radio } from 'antd';

const { MonthPicker, RangePicker, WeekPicker } = DatePicker;

export default class PickerSizesDemo extends React.Component {
  state = {
    size: 'default',
  }

  handleSizeChange = e => {
    this.setState({ size: e.target.value })
  }

  render() {
    const { size } = this.state;
    return (
      <div>
        <Radio.Group value={size} onChange={this.handleSizeChange}>
          <Radio.Button value="large" style={{marginBottom:10}} >Large</Radio.Button>
          <Radio.Button value="default" style={{marginBottom:10}}>Default</Radio.Button>
          <Radio.Button value="small" style={{marginBottom:10}}>Small</Radio.Button>
        </Radio.Group>
        <br />
        <br />
        <DatePicker size={size} style={{marginBottom:10}} />
        <br />
        <MonthPicker size={size} placeholder="Select Month" style={{marginBottom:10}} />
        <br />
        <RangePicker size={size} style={{marginBottom:10}} />
        <br />
        <WeekPicker size={size} placeholder="Select Week" style={{marginBottom:10}} />
      </div>
    )
  }
}